package com.bdmc.report.domain.bo;

import com.bdmc.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDate;

;
/**
 * 人员,车辆检查点工作及里程统计业务对象 report_check_point
 *
 * @author bdmc
 * @date 2022-03-11
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ReportCheckPointBo extends BaseEntity {

    /**
     * 检查点报表主键
     */
    private Long reportPointId;

    /**
     * 排班详情id
     */
    private Long workPlanId;

    private Long workTeamId;

    /**
     * person或car
     */
    private String targetType;

    /**
     * 车辆id
     */
    private Long carId;

    /**
     * 车牌号
     */
    private String carNum;

    /**
     * 人员id
     */
    private Long personId;

    /**
     * 人员姓名
     */
    private String personName;

    /**
     * 工作日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate effectDate;

    private String effectStart;

    private String effectEnd;
    /**
     * 检查点名称
     */
    private String checkName;

    /**
     * 检查点
     */
    private String checkPoint;

    /**
     * 进入次数
     */
    private String enterCount;

    /**
     * 进入时间
     */
    private String enterTime;

    /**
     * 里程
     */
    private BigDecimal mileage;

    private String workPlanName;

    private Long deptId;
}
